package com.ruoyi.material_receive.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物资领取对象 material_receive
 * 
 * @author ruoyi
 * @date 2025-08-22
 */
public class MaterialReceive extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long receiveId;

    /** 物资仓库ID */
    @Excel(name = "物资仓库ID")
    private Long warehouseId;

    // 仓库名称
    private String warehouseName;

    /** 物资ID */
    @Excel(name = "物资ID")
    private Long materialId;

    // 物资名称
    private String materialName;

    /** 领用部门 */
    @Excel(name = "领用部门")
    private String receiveDept;

    /** 领用数量 */
    @Excel(name = "领用数量")
    private Long quantity;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date receiveTime;

    public void setReceiveId(Long receiveId) 
    {
        this.receiveId = receiveId;
    }

    public Long getReceiveId() 
    {
        return receiveId;
    }

    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }

    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }

    public void setReceiveDept(String receiveDept) 
    {
        this.receiveDept = receiveDept;
    }

    public String getReceiveDept() 
    {
        return receiveDept;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setReceiveTime(Date receiveTime) 
    {
        this.receiveTime = receiveTime;
    }

    public Date getReceiveTime() 
    {
        return receiveTime;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("receiveId", getReceiveId())
            .append("warehouseId", getWarehouseId())
            .append("materialId", getMaterialId())
            .append("receiveDept", getReceiveDept())
            .append("quantity", getQuantity())
            .append("receiveTime", getReceiveTime())
            .append("remark", getRemark())
            .toString();
    }
}
